package c2.cross.business.rank.data;

import c2.advanced.business.base.KvData;
import cate.game.activity.config.ActivityBaseCfg;
import easy.java.dev.note.NoteField;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;

public class CrossRankKv extends KvData {
    @Getter
    @Setter
    @NoteField("开启着的活动")
    private List<ActivityBaseCfg> openActivities;
    @Getter
    @Setter
    @NoteField("灵宠跨服排行上次结算时间")
    private long holyPetLastResetTime;

    @Override
    public void init(String key) {
        super.init(key);
        if (openActivities == null) {
            openActivities = new ArrayList<>();
        }
        if (holyPetLastResetTime == 0) {
            holyPetLastResetTime = System.currentTimeMillis();
        }
    }
}
